<div class="container">
    <div class="section ptb-30">
        <div class="row">
            <div class="col-md-3">
                {include file="common/zclb"}
            </div>
            <div class="col-md-9">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <div class="center_da_b">
                            <div class="zx_lie_right_1">我的优惠券</div>
                            <div class="zx_lie_right_2">
                                <ul>
                                    <li><a href="?" class="{:$param['f']==0?'active':''}">全部</a></li>
                                    <li><a href="?begin_time=1" class="{:$param['f']==3?'on':''}">未生效</a></li>
                                    <li><a href="?is_used=1" class="{:$param['f']==1?'on':''}">处理中（已生效）</a></li>
                                    <li><a href="?is_used=2" class="{:$param['f']==2?'on':''}">已使用 </a></li>
                                    <li><a href="?expire_time=1" class="{:$param['f']==4?'on':''}">已过期</a></li>
                                </ul>
                            </div>
                            <div class="center_juan">
                                <ul>
                                    {volist name="coupon_list" id="item"}
                                    <li>
                                        <div class="center_juan1"><b>{$item['coupon']['result_data']['number']}</b>元</div>
                                        <div class="center_juan2">
                                            <p class="juan_v1">{$item['coupon']['name']}</p>
                                            <p class="juan_v2">订单满<b>{$item['coupon']['result_data']['money']}</b>元 {:$item['coupon']['result']==1?'减':'打'}<b>{$item['coupon']['result_data']['number']}</b>{:$item['coupon']['result']==1?'元': '折'}</p>
                                            <p class="juan_v2">有效期：{$item.expire_time|datetime}</p>
                                        </div>
                                        <div class="center_juan3">
                                            {if $item.is_used==2}
                                            <a href="javascript:;" class="jx1">
                                                已使用
                                            </a>
                                            {elseif $item.begin_time > time()}
                                            <a href="javascript:;" class=jx1">
                                                未生效
                                            </a>
                                            {elseif $item.expire_time < time()}
                                            <a href="javascript:;" class="jx1">
                                                已过期
                                            </a>
                                            {else/}
                                            <a href="{$item.coupon.url}" class="jx1 data-name=" {$item.id}">
                                            立即使用
                                            </a>
                                            {/if}
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                            </div>
                            <div class="fenye">
                                {if count($coupon_list)==0}
                                暂未找到更多优惠券
                                {else /}
                                {$coupon_list->render()}
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

